import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import JsonFormatter from '../views/JsonFormatter.vue'
import QrCodeGenerator from '../views/QrCodeGenerator.vue'
import QrCodeReader from '../views/QrCodeReader.vue'
import ImageCompressor from '../views/ImageCompressor.vue'
import PdfToWord from '../views/PdfToWord.vue'
import Encryption from '../views/Encryption.vue'
import Base64Converter from '../views/Base64Converter.vue'
import JsonToCSharp from '../views/JsonToCSharp.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/json-formatter',
      name: 'json-formatter',
      component: JsonFormatter
    },
    {
      path: '/qr-code-generator',
      name: 'qr-code-generator',
      component: QrCodeGenerator
    },
    {
      path: '/qr-code-reader',
      name: 'qr-code-reader',
      component: QrCodeReader
    },
    {
      path: '/image-compressor',
      name: 'image-compressor',
      component: ImageCompressor
    },
    {
      path: '/pdf-to-word',
      name: 'pdf-to-word',
      component: PdfToWord
    },
    {
      path: '/encryption',
      name: 'encryption',
      component: Encryption
    },
    {
      path: '/json-to-csharp',
      name: 'json-to-csharp',
      component: JsonToCSharp
    },
    {
      path: '/base64-converter',
      name: 'base64-converter',
      component: Base64Converter
    },

  ]
})

export default router